<?php
/* If uninstall not called from WordPress exit */
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
{
	exit ();
}
else
{
	/* Delete option from options table */

	if ( get_option( 'tb_trser_market_options' ) != false ) {
	delete_option( 'tb_trser_market_options' );
        }
        /* clean up the database */
        global $wpdb;
        $sql =	'DROP TABLE '.$wpdb->get_blog_prefix().'tb_trser_customer_details;';
        $wpdb->query( $sql );
        $sql =	'DROP TABLE '.$wpdb->get_blog_prefix().'tb_trser_customer_orders;';
        $wpdb->query( $sql );
        $sql =	'DROP TABLE '.$wpdb->get_blog_prefix().'tb_trser_invoices;';
        $wpdb->query( $sql );
        $sql =	'DROP TABLE '.$wpdb->get_blog_prefix().'tb_trser_invoice_details;';
        $wpdb->query( $sql );
}

?>